<?php
	@session_start();
	//-------------------------------------------------------
	include("includes/secure.php");	
	include("includes/config.php");	
	include("includes/class/libranza.class.php");	
	//-------------------------------------------------------

	$libranza = new Libranza();
	$data = $libranza->getLibranzaData($_SESSION['lib_code']);
	unset($_SESSION['bocl_code']);

?>
<style type="text/css">
	
	*{
		font-family: Arial, Helvetica, sans-serif;
	}
	
	.transparent {
		/* Required for IE 5, 6, 7 */
		/* ...or something to trigger hasLayout, like zoom: 1; */
		width: 100%; 
	
		/* Theoretically for IE 8 & 9 (more valid) */
		/* ...but not required as filter works too */
		/* should come BEFORE filter */
		-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=10)";
	
		/* This works in IE 8 & 9 too */
		/* ... but also 5, 6, 7 */
		filter: alpha(opacity=10);
	
		/* Older than Firefox 0.9 */
		-moz-opacity:0.1;
	
		/* Safari 1.x (pre WebKit!) */
		-khtml-opacity: 0.1;
	
		/* Modern!
		/* Firefox 0.9+, Safari 2?, Chrome any?
		/* Opera 9+, IE 9+ */
		opacity: 0.1;
	}
	
	.white_line{
		color: #FFF;
		font-size:12px;
	}
	
	
	.tbl_bill{
		border:1px solid rgb(109,179,242);
		box-shadow: 5px 5px 25px #000;
		-moz-box-shadow: 5px 5px 25px #000;
		-webkit-box-shadow: 5px 5px 25px #000;
	}
	
	.title_bill{
		color:#333;
		font-size:15px;
		text-align:center;
		font-weight:bold;
	}
	
	.firstUnitedServicesLLC{
		font-size:19px;
		font-weight:bold;
		color:#000;
		text-decoration:underline;	
	}
	
	.lbl_gray{
		color:#666;
		font-size:12px;
	}
	
	.lbl_gray_right{	
		color:#666;
		font-size:12px;	
		text-align:right;	
	}
	
	.lbl_black{
		color:#000;
		font-size:12px;
	}
	
	.section_bill{
		border-bottom:1px solid rgb(109,179,242);
		color: rgb(109,179,242);
		font-size: 13px;
		font-weight:bold;
	}
	
	.section_bill_top{
		border-top:1px solid rgb(109,179,242);
		color: rgb(109,179,242);
		font-size: 13px;
		font-weight:bold;
	}
	
</style>
<!--________________ __________________________________________________________________________ ________________106-->
<!--_______________-->

<table cellpadding="0" cellspacing="0">
	<tr>
    	<td colspan="3">&nbsp;</td>
    </tr>
    <tr>
	    <td class="white_line">________________</td>
        <td>
        	<table >
            	<tr>
	                <td class="white_line">________________________________________________________________________________</td>
				</tr>
                <tr>
                	<td>
                                	<table>
                                    <tr>
                                        	<td>&nbsp;</td>
                                        </tr>
                                        <tr>
                                        	<td>&nbsp;</td>
                                        </tr>
                                        <tr>
                                        	<td>&nbsp;</td>
                                        </tr>
                                        <tr>
                                        	<td><img src="images/logo_small.jpg" style="border:0px;"/></td>
										</tr>
                                    	<tr>
                                        	<td style="font-size:18px"><br>ASSC Servicios y Soluciones de Colombia</td>
										</tr>
                                        <tr>
                                        <td class="lbl_black" align="right">Fecha : <?php echo date("d/m/Y"); ?></td>
                                        </tr>
                                        <tr>
                                            <td style="font-size:14px">NIT :<?php echo $data->hdvc_nit; ?></td>
                                            <td></td>
                                         </tr>
                                       <tr>
                                       <td>&nbsp;</td>
                                       </tr>                                        
                                       <tr>
                                        	<td style="font-size:14px">No. <?php echo $data->lib_code; ?></td>
										</tr>
                                        <tr>
                                        <td class="lbl_black" style="text-align:right">Total : $ <?php echo number_Format($data->lib_total,2); ?></td>
                                        </tr>
										<tr>
                                        <td>&nbsp;</td>
                                        </tr>
                                    	<tr>
                                        	<td style="font-size:14px" class="lbl_gray">ORDEN DE DESCUENTO DE COMPENSACION A FAVOR DE  <?php echo $data->hdvc_name; ?>.</td>
                                        </tr>


                                         <tr>
                                        	<td class="lbl_gray" style="font-size:12px" >Senor pagador de <?php echo $data->hdvc_name; ?>, <?php echo date("d/m/Y"); ?>, Yo <?php echo $data->hdv_name ?> <?php echo $data->hdv_lastname ?>, atentamente solicito a usted <br /> se sirva descontar de la compensacion que devengo en prestacion de servicios en la empresa <br /> <?php echo $data->hdvc_name; ?> y pagar a la orden de <?php echo $data->hdvc_name; ?> o quien sus derechos represente, la suma de<br />  <?php echo num2letras($data->lib_total); ?> pesos, con el proposito de garantizar a <?php echo $data->hdvc_name; ?>, la oportuna cancelacion<br /> del credito que bajo la modalidad de descuento por compensacion me ha otorgado. </td>

                                        </tr>
                                        <tr>
                                        <td>&nbsp;
                                        </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            Capital : $ <?php echo number_format($data->lib_value,2); ?>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            Interes : <?php echo ($data->lib_interes*100); ?> % mensual.
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            Meses de plazo : <?php echo $data->lib_month; ?>.
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            Total Deuda : $ <?php echo number_format($data->lib_total,2); ?>.
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            Numero de Cuotas : $ <?php echo $data->lib_cuotas_payment; ?>.
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            Pagos de : $ <?php echo number_format($data->lib_amount_payment,2); ?>.
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            Fecha Incial de Pagos : $ <?php echo cambiarFormatoFecha($data->lib_date_start,1); ?>.
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            Fecha Terminacion de Pagos : $ <?php echo cambiarFormatoFecha($data->lib_date_end,1); ?>.
                                            </td>
                                        </tr>
                                        <tr>
                                        	<td>&nbsp;</td>
                                        </tr>
                                        <tr>
                                        	<td class="lbl_gray" style="font-size:12px" >Por terminado el convenio de asociado a la cooperativa o relacion de prestacion de servicios con la empresa,<br /> autorizamos que las cuotas restantes para cancelar el saldo se descuenten de las provisiones del mes. <br />Compensaciones a que tengamos derecho. </td>

                                        </tr>
                                        <tr>
                                        	<td>&nbsp;</td>
                                        </tr>
                                        <tr>
                                        	<td>&nbsp;</td>
                                        </tr>
                                        <tr>
                                        	<td>&nbsp;</td>
                                        </tr>
                                        <tr>
                                        	<td>Aceptada</td>
                                        </tr>
                                        <tr>
                                        	<td>&nbsp;</td>
                                        </tr>
                                        <tr>
                                        	<td>&nbsp;</td>
                                        </tr>
                                        <tr>
                                        	<td>&nbsp;</td>
                                        </tr>
                                        <tr>
                                        	<td>&nbsp;</td>
                                        </tr>
                                        <tr>
											<td>Quien desembolsa</td>
                                        </tr>
                                        <tr>
                                        	<td>&nbsp;</td>
                                        </tr>
                                        <tr>
                                        	<td>&nbsp;</td>
                                        </tr>
                                        <tr>
                                        	<td>&nbsp;</td>
                                        </tr>
                                        <tr>
                                        	<td>&nbsp;</td>
                                        </tr>
                                        <tr>
											<td>Gerente <?php echo $data->hdvc_name; ?></td>
                                        </tr>
                    
                     </table>
                    </td>
                </tr>
                <tr>
                                        	<td>&nbsp;</td>
                                        </tr>
                                        <tr>
                                        	<td>&nbsp;</td>
                                        </tr>
                <tr>
                    <td  style="text-align:center">www.assc.com</td>
                </tr>
            </table>
        </td>
        <td class="white_line"></td>
    </tr>        
</table>
